﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  targetNamespace="http://www.codeplex.com/MSSqlSchemaDoc"
  xmlns="http://www.codeplex.com/MSSqlSchemaDoc"
  attributeFormDefault="unqualified"
  elementFormDefault="qualified">

  <xs:include schemaLocation="ProcedureParameterCollectionType.xsd" />
  
  <xs:element name="UserDefinedFunction">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Parameters" minOccurs="0" type="ProcedureParameterCollectionType" />
        <xs:element name="UsesAnsiNulls" type="xs:boolean" />
        <xs:element name="UsesQuotedIdentifier" type="xs:boolean" />
        <xs:element name="IsSchemaBound" type="xs:boolean" />
        <xs:element name="UsesDatabaseCollation" type="xs:boolean" />
        <xs:element name="IsRecompiled" type="xs:boolean" />
        <xs:element name="ExecuteAsPrincipalId" type="xs:integer" nillable="true" />
        <xs:element name="Definition" type="xs:string" />
      </xs:sequence>
      <xs:attribute name="Name" type="xs:string" use="required" />
      <xs:attribute name="Schema" type="xs:string" use="required" />
    </xs:complexType>
  </xs:element>

</xs:schema>